package com.legolas.api.model;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: Legolas
 * Date: 2017/8/4 0004
 */
/*文章信息*/
public class Article implements Serializable{
    private int id;//id
    private String heading;//标题
    private String description;//描述
    private String releaseTime;//发布时间
    private String content;//内容
    private int likeCount;//点赞数
    private int readedCount;//阅读数
    private int transmitCount;//转发数
    private int commentId;//评论id

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getHeading() {
        return heading;
    }

    public void setHeading(String heading) {
        this.heading = heading;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getReleaseTime() {
        return releaseTime;
    }

    public void setReleaseTime(String releaseTime) {
        this.releaseTime = releaseTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(int likeCount) {
        this.likeCount = likeCount;
    }

    public int getReadedCount() {
        return readedCount;
    }

    public void setReadedCount(int readedCount) {
        this.readedCount = readedCount;
    }

    public int getTransmitCount() {
        return transmitCount;
    }

    public void setTransmitCount(int transmitCount) {
        this.transmitCount = transmitCount;
    }

    public int getCommentId() {
        return commentId;
    }

    public void setCommentId(int commentId) {
        this.commentId = commentId;
    }

    @Override
    public String toString() {
        return "Article{" +
                "id=" + id +
                ", heading='" + heading + '\'' +
                ", description='" + description + '\'' +
                ", releaseTime='" + releaseTime + '\'' +
                ", content='" + content + '\'' +
                ", likeCount=" + likeCount +
                ", readedCount=" + readedCount +
                ", transmitCount=" + transmitCount +
                ", commentId=" + commentId +
                '}';
    }
}
